package pl.kosmowska.ewelina.client.views;

import java.util.Date;
import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.OutcomeDataProxy;
import pl.kosmowska.ewelina.client.app.requestfactory.dto.SavingsDataProxy;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface SavingsEditView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void saveSavingsData(String name, float value, Date startDate,
				Date endDate, List<OutcomeDataProxy> outcomeDataList);

		void generateOutcomeList(String name, float value,
				Date startDate, Date endDate);

		void goToSavingsPlace();

	}

	void setPresenter(Presenter presenter);


	void setData(SavingsDataProxy savingsDataProxy);

	void setOutcomeProxy(OutcomeDataProxy outcomeDataProxy);

	void showMessage(String errorMessage);

	boolean isAlreadyInit();

	void setAlreadyInit(boolean alreadyInit);

	void showGrid();

	void reInitView();


	void setOutcomeDataList(List<OutcomeDataProxy> outcomeDataList);

}
